from fastapi import APIRouter
from dao.es_dao.compare_data_dao import find_same_position


location_router = APIRouter(prefix='/test/wristband', tags=['定位数据'])


@location_router.post("/find_same_location")
async def exception_count(data: dict):
    result_location = await find_same_position(data['date'], data['project_id'])
    return {
        "code": 200,
        "success": True,
        "message": "操作成功",
        "data": result_location
    }